package com.panda.cn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panda.cn.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {
    
    /**
     * 获取当前角色下的所有菜单
     * @param roleCodes
     * @return
     */
    List<SysMenuEntity> findMenuByRoles(@Param("roleCodes") String[] roleCodes);
}
